package cn.rubbit.entity;

import java.util.HashMap;
import java.util.Map;

public class Dependency extends BaseBean {
	private String version;
	private String artifactId;
	private String groupId;
	private String name;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getArtifactId() {
		return artifactId;
	}

	public void setArtifactId(String artifactId) {
		this.artifactId = artifactId;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Map<String, Object> toMap() {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("name", name);
		map.put("groupId", groupId);
		map.put("artifactId", artifactId);
		map.put("version", version);
		return map;
	}
}
